//
//  ProductEntity.h
//  NewApp
//
//  Created by xueyan liu on 6/23/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

/*
 * ShopCar Entity
 */
@interface ShopCarEntity : NSObject{

    NSString *ID;
    NSURL *img;
    NSString *info;
    NSString *item_name;
    NSString *item_no;
    NSString *num;
    NSString *price;
    NSString *sprice;
}

@property(nonatomic,retain)     NSString *ID;
@property(nonatomic,retain)     NSURL *img;
@property(nonatomic,retain)     NSString *info;
@property(nonatomic,retain)     NSString *item_name;
@property(nonatomic,retain)     NSString *item_no;
@property(nonatomic,retain)     NSString *num;
@property(nonatomic,retain)     NSString *price;
@property(nonatomic,retain)     NSString *sprice;

-(id)initWithDictionary:(NSDictionary *)dic;

@end

/*
 * Product Entity
 */
@interface ProductEntity : NSObject{

    NSString *ID;
    NSString *title;
    NSString *info;
    NSString *sd;
    NSURL *img;

}

@property(nonatomic,retain) NSString *ID;
@property(nonatomic,retain) NSString *title;
@property(nonatomic,retain) NSString *info;
@property(nonatomic,retain) NSString *sd;
@property(nonatomic,retain) NSURL *img;

-(id)initWithID:(NSString *)_ID 
                       title:(NSString *)_title 
                        info:(NSString *)_info
                          sd:(NSString *)_sd 
                         img:(NSString *)_img;

-(id)initWithDictionary:(NSDictionary *)dic;

@end


/*
 * Product Data
 */
@interface ProductData : NSObject{

    NSString *topTitle;
    NSString *count;
    NSString *style;
    NSMutableArray *data;
}

@property(nonatomic,retain) NSString *topTitle;
@property(nonatomic,retain) NSString *count;
@property(nonatomic,retain) NSString *style;
@property(nonatomic,retain) NSMutableArray *data;

-(id) initWithTitle:(NSString *)_topTitle 
                         count:(NSString *)_count
                         style:(NSString *)_style
                          data:(NSArray *)_data;

@end

@interface MyOrderEntity : NSObject 

@property (nonatomic, retain) NSString  *ID;
@property (nonatomic, retain) NSString  *date;
@property (nonatomic, retain) NSString  *state;
@property (nonatomic, retain) NSString  *payway;
@property (nonatomic, retain) NSString  *phone;
@property (nonatomic, retain) NSString  *address;

- (id)initWithDictionary:(NSDictionary *)dict;

@end

@interface MyOrderViewEntity : NSObject

@property (nonatomic, retain) NSString  *ID;
@property (nonatomic, retain) NSString  *Item_name;
@property (nonatomic, retain) NSString  *Item_no;
@property (nonatomic, retain) NSString  *num;
@property (nonatomic, retain) NSString  *sprice;
@property (nonatomic, retain) NSString  *img;

- (id)initWithDictionary:(NSDictionary *)dict;

@end
